import 'package:flutter_base/resource/theme/theme_enum.dart';
import 'package:flutter_base/resource/theme/theme_ui.dart';

var darkModes;

Map<IconEnum, String> getThemeIcon(int darkMode) {
  darkModes = darkMode;
  if (darkMode == 1) {
    iconThemes = {
      IconEnum.icon: 'assets/images/moon.png',
      IconEnum.ic_splash: 'assets/images/ic_splash.png',
    };
  } else if (darkMode == 0) {
    iconThemes = {
      IconEnum.icon: 'assets/images/sun.png',
      IconEnum.ic_splash: 'assets/images/ic_splash.png',
    };
  }
  return iconThemes;
}

String get ic_splash {
  if (iconThemes == null) {
    return 'assets/images/ic_splash.png';
  }
  return iconThemes[IconEnum.ic_splash];
}

String get icon {
  if (iconThemes == null) {
    return 'assets/images/sun.png';
  }
  return iconThemes[IconEnum.icon];
}
